using System.ComponentModel.DataAnnotations.Schema;
namespace ShopForWeb.Models
{
  /// <summary>
  /// 购物车
  /// </summary>
  [Table("T_ShopCart")]
  public class ShopCart
  {
    public int UserID { get; set; }
    public int CommodityID { get; set; }
    [Column(TypeName = "decimal(18,2)")]
    public decimal OldPrice { get; set; }

    public DateTime PushDate { get; set; }

    [ForeignKey("UserID")]
    public virtual User? User { get; set; }

    [ForeignKey("CommodityID")]
    public virtual Commodity? Commodity { get; set; }
  }
}
